#-------------------------------------------------
#
# Project created by QtCreator 2024-10-29T17:22:03
#
#-------------------------------------------------

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = GoToTest
TEMPLATE = app

# 定义自定义变量
CARD_TYPE = RTC5  # 可以设置为 RTC6 来切换卡类型

SOURCES += main.cpp\
        mainwindow.cpp

HEADERS  += mainwindow.h

FORMS    += mainwindow.ui

# 根据 CARD_TYPE 定义相应的宏
equals(CARD_TYPE, RTC5) {
    DEFINES += USE_RTC5
    win32: LIBS += -L$$PWD/../rtc5/lib/ -lRTC5DLL
    unix:!macx: LIBS += -L$$PWD/../rtc5/lib/ -lRTC5DLL
    INCLUDEPATH += $$PWD/../rtc5
    DEPENDPATH += $$PWD/../rtc5
} else:equals(CARD_TYPE, RTC6) {
    DEFINES += USE_RTC6
    win32: LIBS += -L$$PWD/../rtc6/lib/ -lRTC6DLL
    unix:!macx: LIBS += -L$$PWD/../rtc6/lib/ -lRTC6DLL
    INCLUDEPATH += $$PWD/../rtc6
    DEPENDPATH += $$PWD/../rtc6
}




